package com.sc.outpatientsys.mapper;

import com.sc.outpatientsys.entity.Doctor;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DoctorMapper {
    Integer insertDoctor(Doctor doctor);
    Doctor findByDoctorID(int dc_ID);
    Doctor findByDoctorName(String userName);
    List<Doctor> selectAllDoctor();
    Integer updateDoctor(Doctor doctor);
    Integer deleteDoctor(int dc_ID);
    Integer updateAccess(@Param("dc_ID") int dc_ID,@Param("access") int access);
    List<Doctor> findByClinic(String clinic);
}
